import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '../components/home/home.vue';
import Patient from '../components/patient/patients.vue';
import Oindex from '../components/index.vue';
import Expertr from '../components/experts/experts.vue';
import Employees from '../components/employees/employees.vue';
import AssistOrderIng from '../components/assistOrderIng/assisOrderIng.vue';
import AssistOrders from '../components/assistOrders/assistOrders.vue';
import Account from '../components/accout/accout.vue';
import NavTop from '../components/public/navTop.vue';

Vue.use(VueRouter);

export default new VueRouter({
    routes: [{
            path: '/index',
            component: Oindex
        },
        {
            path: '/home',
            name:"Home",
            component: Home
        },
        {
            path: '/Patient',
            name: 'Patients',
            component: Patient
        },
        { path: '/employees',
            name: 'Employees',
            component: Employees
        },
        { path: '/assistOrderIng',
            name: 'AssistOrderIng',
            component: AssistOrderIng
        },
        { path: '/assistOrders',
            name: 'AssistOrders',
            component: AssistOrders
        },
        {
            path: '/account',
            name: 'Account',
            component: Account
        },
        {
            path: '/expert',
            name: 'Expert',
            component: Expertr
        },
        {
            path: '*',
            redirect: '/index'
        }
    ]
})